package com.ziji.testFactoryBean;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class TestFactoryBean implements FactoryBean<Object> {


	@Override
	public Object getObject() throws Exception {
		System.out.println("TestFactoryBean getObject() invoked...");
		return new Person();
	}

	@Override
	public Class<?> getObjectType() {
		return Person.class;
	}
}
